package org.dromara.nursing.domain.bo;

import org.dromara.nursing.domain.ElderOutstandingFees;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 欠费记录业务对象 ms_elder_outstanding_fees
 *
 * @author Xue
 * @date 2025-04-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ElderOutstandingFees.class, reverseConvertGenerate = false)
public class ElderOutstandingFeesBo extends BaseEntity {

    /**
     * 记录ID
     */
    @NotNull(message = "记录ID不能为空", groups = { EditGroup.class })
    private Long recordId;

    /**
     * 老人ID
     */
    private Long elderId;

    /**
     * 老人姓名
     */
    private String elderName;

    /**
     * 费用来源
     */
    @NotBlank(message = "费用来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private String feeSource;

    /**
     * 来源记录ID
     */
    private Long sourceId;

    /**
     * 费用描述
     */
    private String feeDescription;

    /**
     * 计费日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date billDate;

    /**
     * 应付日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dueDate;

    /**
     * 费用总额
     */
    private Long totalAmount;

    /**
     * 已付金额
     */
    private Long paidAmount;

    /**
     * 未付金额
     */
    private Long outstandingAmount;

    /**
     * 支付状态
     */
    private String paymentStatus;

    /**
     * 最后付款日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastPaymentDate;

    /**
     * 付款截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date paymentDeadline;

    /**
     * 是否逾期
     */
    private String isOverdue;

    /**
     * 逾期天数
     */
    private Long overdueDays;

    /**
     * 催款次数
     */
    private Long reminderCount;

    /**
     * 最后催款日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastReminderDate;

    /**
     * 备注
     */
    private String remarks;


}
